package com.grgbanking.it.wx.common;


/**
 * 微信中的常量
 * 
 * WXConstant
 * 
 * @author 潘广伟
 * @Email p_3er@qq.com
 * @Date 2014-11-5 下午1:06:45
 * 
 * @version 1.0.0
 *
 */
public class WXConstant {
	/**
	 * 公司代码
	 */
	public final static String CORPID = "wx59ec66aac63b5a12";
	/**
	 * 管理组代码
	 */
	public final static String CORPSECRET = "xbrH2jzZfsnfs2UA0wV6R1HC2xq0aCiQvV7VE9CVCBRrJzwNoflA3_noO-JyH6Sb";
	
	/**
	 * token的地址
	 */
	public final static String TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken";
	/**
	 * 菜单创建
	 */
	public final static String MENU_CREAT_URL = "https://qyapi.weixin.qq.com/cgi-bin/menu/create";
	/**
	 * 菜单删除
	 */
	public final static String MENU_DELETE_URL = "https://qyapi.weixin.qq.com/cgi-bin/menu/delete";
	/**
	 * 创建部门地址
	 */
	public final static String DEPARTMENT_CREAT_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=";
	/**
	 * 更新部门地址
	 */
	public final static String DEPARTMENT_UPDATE_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=";
	/**
	 * 删除部门地址
	 */
	public final static String DEPARTMENT_DELETE_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=";
	/**
	 * 获取部门列表地址
	 */
	public final static String DEPARTMENT_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=";
	/**
	 * 创建用户地址
	 */
	public final static String USER_CREAT_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=";
	/**
	 * 获取用户地址
	 */
	public final static String USER_GET_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo";
	/**
	 * 批量删除用户地址
	 */
	public final static String USER_BATCHDELETE_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete?access_token=";
	/**
	 * 获取用户列表地址
	 */
	public final static String USER_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=";
	/**
	 * 发送微信的地址
	 */
	public final static String MESSAGE_SENT_URL = "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=";
	
	
	/********************下面是信息相关的常量*********************************/
	
	/**
	 * 返回消息类型：文本
	 */
	public final static  String RESP_MESSAGE_TYPE_TEXT = "text";

	/**
	 * 返回消息类型：音乐
	 */
	public final static String RESP_MESSAGE_TYPE_MUSIC = "music";

	/**
	 * 返回消息类型：图文
	 */
	public final static String RESP_MESSAGE_TYPE_NEWS = "news";

	/**
	 * 请求消息类型：文本
	 */
	public final static String REQ_MESSAGE_TYPE_TEXT = "text";

	/**
	 * 请求消息类型：图片
	 */
	public final static String REQ_MESSAGE_TYPE_IMAGE = "image";

	/**
	 * 请求消息类型：链接
	 */
	public final static String REQ_MESSAGE_TYPE_LINK = "link";

	/**
	 * 请求消息类型：地理位置
	 */
	public final static String REQ_MESSAGE_TYPE_LOCATION = "location";

	/**
	 * 请求消息类型：音频
	 */
	public final static String REQ_MESSAGE_TYPE_VOICE = "voice";

	/**
	 * 请求消息类型：推送
	 */
	public final static String REQ_MESSAGE_TYPE_EVENT = "event";

	/**
	 * 事件类型：subscribe(订阅)
	 */
	public final static String EVENT_TYPE_SUBSCRIBE = "subscribe";

	/**
	 * 事件类型：unsubscribe(取消订阅)
	 */
	public final static String EVENT_TYPE_UNSUBSCRIBE = "unsubscribe";

	/**
	 * 事件类型：CLICK(自定义菜单点击事件)
	 */
	public final static String EVENT_TYPE_CLICK = "CLICK";
}
